from sklearn import tree

feature = [[140, 1], [130, 1], [150, 0], [170, 0]]
labels = [0, 0, 1, 1]
clf = tree.DecisionTreeClassifier()
clf = clf.fit(feature, labels)
print(clf.predict([[120, 1]]))
